<?php
header("Content-type: text/html; charset=utf-8");
function curl_get_file_contents($URL) 
{ 
	$c = curl_init(); 
	curl_setopt($c, CURLOPT_RETURNTRANSFER, 1); 
	//curl_setopt($c, CURLOPT_HEADER, 1);//输出远程服务器的header信息 
	curl_setopt($c, CURLOPT_USERAGENT, 'Mozilla/5.0 (Linux; U; Android 2.3.6; zh-cn; GT-S5660 Build/GINGERBREAD) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1 MicroMessenger/4.5.255'); 
	curl_setopt($c, CURLOPT_URL, $URL); 
	$contents = curl_exec($c); 
	curl_close($c); 
	if ($contents)
	{
		preg_match("/<body>(.*)<\/body>/",$contents,$arr);
		return $arr;
	}else{
		return FALSE;
	} 
} 
print_r(curl_get_file_contents('http://weipan.zbdzwjy.com/index.php?m=admin&c=index&a=login'));
?>